import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login/login'
import forgot from '@/components/login/forgot'
import index from '@/components/navigation/index'
import signin from '@/components/signin/signIn.vue'
import leave from '@/components/signin/leave.vue'
import auditing from '@/components/signin/auditing.vue'
import auditing2 from '@/components/signin/auditing2.vue'
import home from '@/components/navigation/home'


import personal from '@/components/personal/personal'
import resource from '@/components/resource/resource'

import activity from '@/components/active/activity'
import addActivity from '@/components/active/addActivity'
import nowActivity from '@/components/active/nowActivity'
import finishActivity from '@/components/active/finishActivity'
import myActivity from '@/components/active/myActivity'
import detailActivity from '@/components/active/detailActivity'
import endDetail from '@/components/active/endDetail'

import divide from '@/components/group/divide'
import evaluate360 from '@/components/group/evaluate360'
import rank from '@/components/group/rank'
import todo from '@/components/group/todo'


import resourceApplication from '@/components/resource/resourceApplication'
import applicationSituation from '@/components/resource/applicationSituation'


import adminIndex from '@/components/navigation/adminindex'
import groupLeaderTodo from '@/components/group/groupLeaderTodo'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/index',
      name: 'index',
      component: index,
      redirect:'/home',
      children:[
      {
        path:'/signin',
        component:signin
      },
      {
        path:'/leave',
        component:leave
      },
      {
        path:'/auditing2',
        name:'auditing2',
        component:auditing2
      },
      {
      	path:'/home',
				component:home
      },
      {
      	path:'/resourceApplication',
				component:resourceApplication
      },
      {
      	path:'/applicationSituation',
				component:applicationSituation
      },
      {
	     	path:'/personal',
	     	component:personal
      },
      {
	     	path:'/activity',
	     	component:activity
      },
      {
	     	path:'/addActivity',
	     	component:addActivity
      },
       {
	     	path:'/nowActivity',
	     	component:nowActivity
      },
      {
	     	path:'/finishActivity',
	     	component:finishActivity
      },
      {
	     	path:'/myActivity',
	     	component:myActivity
      },
      {
	     	path:'/detailActivity',
	     	component:detailActivity
      },
      {
	     	path:'/endDetail',
	     	component:endDetail
      },
      {
	     	path:'/divide',
	     	component:divide
      },
      {
	     	path:'/evaluate360',
	     	component:evaluate360
      },
      {
	     	path:'/rank',
	     	component:rank
      },
      {
	     	path:'/todo',
	     	component:todo
      },
      {
	     	path:'/groupLeaderTodo',
	     	component:groupLeaderTodo
      }
      ]
    },
    {
    	path:'/login',
    	component:login
    },
    {
    	path:'/forgot',
    	component:forgot
    },
    {
    	path:'/index',
    	component:index
    },
    {
    	path:'/*',
    	redirect:'/login'
    },
    {
    	 path:'/resource',
    	 component:resource
    }
    
  ]
})
